import java.util.Scanner;

public class Main1713 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n= sc.nextInt();
        int i=1;
        while (i<=n){
            System.out.println(i);
            i=i+3;
        }
    }
}
